/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.jr2tecnologia.model;

import br.com.jr2tecnologia.model.entity.KeyResponse;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.Local;

/**
 *
 * @author ronildo
 */

@Local
public interface KeyResponsePersistenceLocal {

    @PostConstruct
    void initialize();

    KeyResponse findById(KeyResponse keyResponse);

    KeyResponse findByName(String name);

    KeyResponse findByNameWithoutCasesensitive(String name);

    List<KeyResponse> list(KeyResponse keyResponse);

    List<KeyResponse> listAll();

    void makeDefaultKeyResponse(KeyResponse oldDefaultKeyResponse, KeyResponse newDefaultKeyResponse);

    boolean persist(KeyResponse keyResponse);

    void remove(KeyResponse keyResponse);

    void update(KeyResponse keyResponse);

}
